﻿using System;
using System.Collections.Generic;
using System.Text;
using Best.SmartCms.Dto.Request;

namespace Best.SmartCms.Dto.User
{
    /// <summary>
    /// 用户对象
    /// </summary>
    public class UserEditDto
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 真名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
       
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Mail { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }
       
    }

    /// <summary>
    /// 查询
    /// </summary>
    public class UserListQueryDto: PagedQueryRequest
    {
        /// <summary>
        /// 有效性查询
        /// </summary>

        public bool? Enabled { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string Phone { get; set; }
    }

    /// <summary>
    /// 列表对象
    /// </summary>
    public class UserListDto
    {
        /// <summary>
        /// id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 真名
        /// </summary>
        public string Name { get; set; }
       
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Mail { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string Phone { get; set; }


        /// <summary>
        /// 性别
        /// </summary>
        public short Sex { get; set; }
        
        /// <summary>
        /// 有效性
        /// </summary>
        public bool Enabled { get; set; }
    }
}
